//package com.quanshi.qs.utils.async;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Async;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.time.LocalDateTime;
//
//@Slf4j
//@Component
//// 1.开启定时任务
//@EnableScheduling
//public class ScheduleTask {
//    @Autowired
//    private AsyncService asyncService;
//
//    //  定时任务： 用于处理cookie过期延长
//    @Async("cookieTheadPool")
//    @Scheduled(fixedDelay = 3600000)  //间隔1800秒
//    public void first() throws InterruptedException {
//
//        log.info("定时任务开始: {}，  线程池分配的线程是：{}.",LocalDateTime.now().toLocalTime(), Thread.currentThread().getName());
//
//        //                调用 线程池
//        asyncService.hmVideoBindPlatformVideo();
//        //        Thread.sleep(1000 * 10);
//    }
//}
